<script setup>
  import { ref } from 'vue';
  import { ElMessage,ElMessageBox } from 'element-plus';

  const passwordInfo=ref({
    oldPwd: '',
    newPwd: '',
    rePwd: ''
  });
</script>

<template>
     <el-card class="page-container">
        <template #header>
            <div class="header">
                <span><strong>密码修改</strong></span>
            </div>
        </template>
        <el-row>
            <el-col :span="12">
                <el-form :model="passwordInfo" :rules="rules" label-width="100px" size="large">
                    <el-form-item label="原密码" prop="oldPwd">
                        <el-input v-model="passwordInfo.oldPwd" type="password"></el-input>
                    </el-form-item>
                    <el-form-item label="新密码" prop="newPwd">
                        <el-input v-model="passwordInfo.newPwd" type="password"></el-input>
                    </el-form-item>
                    <el-form-item label="确认密码" prop="rePwd">
                        <el-input v-model="passwordInfo.rePwd" type="password"></el-input>
                    </el-form-item>
                    <el-form-item>
                        <el-button type="primary" @click="updatePassword" :loading="loading">确认修改</el-button>
                    </el-form-item>
                </el-form>
            </el-col>
        </el-row>
    </el-card> 
   
</template>
